package com.example.JcGQS.WMS;

import com.example.JcGQS.pojo.dto.PersonalUseDTO;
import com.example.JcGQS.pojo.dto.ProjectAcceptanceDTO;
import com.example.JcGQS.pojo.dto.PutInStorageDTO;
import com.example.JcGQS.response.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 */
@Component("wsmClient")
public class WMSClient {
    @Autowired
    WMSApi wmsApi;
    /**
     * 个人领用
     */
    public void personalUse(PersonalUseDTO personalUseDTO){
        ResultUtil resultUtil = wmsApi.personalUse(personalUseDTO);
//        System.out.println(resultUtil);
    }
    /**
     * 项目领用
     */
    public void projectAcceptance(ProjectAcceptanceDTO projectAcceptanceDTO){
        ResultUtil resultUtil = wmsApi.projectAcceptance(projectAcceptanceDTO);
        System.out.println(projectAcceptanceDTO);
       System.out.println(resultUtil);
    }
    /**
     * 入库
     */
    public void putInStorage(PutInStorageDTO putInStorageDTO){
        ResultUtil resultUtil = wmsApi.putInStorage(putInStorageDTO);
//        System.out.println(resultUtil);
    }
}
